package com.ymatou.iapi.smsproxy.service;

import com.google.gson.JsonArray;
import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*发送短信包Call
*FreeMaker Template自动生成代码
*/
public class SendMessagePackageCall extends YmatouBaseCall{
	private static String opurl ="api/Message/SendMessagePackage";
	
	public SendMessagePackageCall() {
		super(EnvSetup.getSystemUrl("smsproxy_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	public JsonArray getIds() {
		return getJsonObject().get("result").getAsJsonObject().get("ids").getAsJsonArray();
	}
}